#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。   sh  k8s/c.sh
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


#  网关模块构建
echo "begin copy hello-gateway "
mkdir  -p k8s/hello/gateway/target  # 递归创建目录
cp hello-gateway/target/hello-gateway.jar k8s/hello/gateway/target  #  复制jar包到对应目录


# 认证模块构建
echo "begin copy hello-auth "
mkdir  -p k8s/hello/auth/target  # 递归创建目录
cp hello-auth/target/hello-auth.jar k8s/hello/auth/target


#  系统模块构建
echo "begin copy hello-modules-system "
mkdir  -p k8s/hello/modules/system/target  # 递归创建目录
cp hello-modules/hello-system/target/hello-modules-system.jar k8s/hello/modules/system/target

